﻿
using System.Windows;
using System.Windows.Controls;

namespace SuiYuan.UI.Controls.Buttons
{
    public class LayUIIconTextButton : Button
    {
        public string IconText
        {
            get { return (string)GetValue(IconTextProperty); }
            set { SetValue(IconTextProperty, value); }
        }
        public ButtonSize ButtonSize
        {
            get { return (ButtonSize)GetValue(ButtonSizeProperty); }
            set { SetValue(ButtonSizeProperty, value); }
        }

        public LayUIButtonType Type
        {
            get { return (LayUIButtonType)GetValue(TypeProperty); }
            set { SetValue(TypeProperty, value); }
        }

        public bool Radius
        {
            get { return (bool)GetValue(RadiusProperty); }
            set { SetValue(RadiusProperty, value); }
        }

        public static readonly DependencyProperty IconTextProperty = DependencyProperty.Register("IconText", typeof(string), typeof(LayUIIconTextButton));
        public static readonly DependencyProperty ButtonSizeProperty = DependencyProperty.Register("ButtonSize", typeof(ButtonSize), typeof(LayUIIconTextButton));
        public static readonly DependencyProperty TypeProperty = DependencyProperty.Register("Type", typeof(LayUIButtonType), typeof(LayUIIconTextButton));
        public static readonly DependencyProperty RadiusProperty = DependencyProperty.Register("Radius", typeof(bool), typeof(LayUIIconTextButton));
    }
}
